package com.goktech.service.imp;

import com.goktech.entity.Admin;
import com.goktech.mapper.AdminMapper;
import com.goktech.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("AdminService")
public class adminServiceImp implements AdminService {

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin findByAdmin(Admin a) {
        System.out.println(adminMapper);
        return adminMapper.findByAdmin(a);
    }

    @Override
    public Admin findByZhanghao(Admin a) {
        return adminMapper.findByZhanghao(a);
    }

    @Override
    public int updateAdmin(Admin a){
        return adminMapper.updateAdmin(a);
    }


    @Override
    public int deleteAdmin(Admin a){

        return adminMapper.deleteAdmin(a);
    }


}
